package xyz.ddlnt.servicemgclient.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import xyz.ddlnt.commonutil.result.Result;
import xyz.ddlnt.model.entity.AdminInfo;

/**
 * @author ZZULI_SE 210910
 * @data 2025/5/9 15:56
 */
//@FeignClient(name = "service-mg", url = "http://yixuewang-service-mg:9016", path = "/admin")
//@FeignClient(name = "service-mg", url = "http://localhost:9006", path = "/admin")
@FeignClient(value = "service-mg", path = "/admin")
public interface AdminFeignClient {
    /**
     * 管理员登录
     * @param adminInfo
     * @return
     */
    @PostMapping("login")
    Result<String> login(@RequestBody AdminInfo adminInfo);

    /**
     * 管理员注册
     * @param adminInfo
     * @return
     */
    @PostMapping("register")
    Result<Boolean> register(@RequestBody AdminInfo adminInfo);
}
